<?php
include_once 'tite.php';

$t_example = <<<HTML

	<h2>Simple templates</h2>

	<!--@+input-->
		<p>You should see this sentence since it is set in the template array: <!--@input--></p>
	<!--@+input-->

	<!--@-input-->
		<p>You will not see this sentence since show has a value</p>
	<!--@-input-->



	<!--@+input2-->
		<p>You should not see this sentence since it is empty,</p>
	<!--@+input2-->

	<!--@-input2-->
		<p>Input2 is blank therefore you will see this sentence</p>
	<!--@-input2-->

	<h4><!--@somevalue--></h4>

	<h3>Array test</h3>
	<!--@>row-->
		<p class="name">
			Welcome to the example, <!--@row.name-->
		</p>
	<!--@>row-->
HTML;


echo RenderTemplate($t_example,array(
	'input' => 'My input value'
	,'input2' => ''
	,'somevalue' => 'Testing regular placeholder'
	,'row' => array(
		array('name' => 'Arnold'),
		array('name' => 'Jane')
	)
));
?>